package model

import "fmt"
type account struct{
	Name string 
	money float64 
}

func NewAccount(name string,money float64)*account{

	if len(name)<3||len(name)>10{
		fmt.Printf("name len error")
		return nil
	}
	if money<20{
		fmt.Printf("money so lease")
	}

	//fmt.Println(string)
	return &account{
		Name:name,
		money:money,
	}
}

func (a*account)GetMoney()float64{
	return a.money
}